n = int(input())
arr = input().split(" ")
for i in range(len(arr)):
    arr[i] = int(arr[i])
temp = [0] * 101
for num in arr:
    temp[num] += 1
for i in range(1, len(temp)):
    if temp[i] > 0:
        print("%d出现%d次" % (i, temp[i]))
